Calibration techniques for frequency synthesizers

ABSTRACT

In one embodiment, this disclosure describes a frequency synthesizer for use in a wireless communication device, or similar device that requires precision frequency synthesis but small amounts of noise. In particular, the frequency synthesizer may include a phase locked loop (PLL) and an integrated voltage controlled oscillator (VCO). The frequency synthesizer may implement one or more calibration techniques to quickly and precisely calibrate the VCO. In this manner, the analog gain of the VCO can be significantly reduced, which may improve performance of the wireless communication device. Also, the initial state of the PLL may be improved to reduce lock time of the PLL, which may enhance performance of the wireless communication device.

FIELD

[0001] This disclosure relates to frequency synthesizers, and more particularly to frequency synthesizers that can be flexibly implemeneted.

BACKGROUND

[0002] Frequency synthesizers are commonly implemented within wireless communication devices that transmit and receive encoded radio frequency (RF) signals. A number of different wireless communication techniques have been developed including frequency division multiple access (FDMA), time division multiple access (TDMA) and various spread spectrum techniques. One common spread spectrum technique used in wireless communication is code division multiple access (CDMA) signal modulation in which multiple communications are simultaneously transmitted over a spread spectrum radio-frequency (RF) signal. Some example wireless communication devices that have incorporated one or more wireless communication techniques include cellular radiotelephones, PCMCIA cards incorporated within portable computers, personal digital assistants (PDAs) equipped with wireless communication capabilities, and the like.

[0003] Frequency synthesizers of wireless communication devices may be used during both RF signal reception and RF signal transmission. For example, during RF signal reception of CDMA encoded signals, RF signals are typically mixed down to baseband signals, which can be converted to digital values. During the mixing down process, reference waveforms are produced by a frequency synthesizer that utilizes a local clock of the wireless communication device as a timing reference. After mixing the RF signal down to baseband, the baseband signals are typically passed through an analog-to-digital (A/D) converter to produce the digital values that can be tracked and demodulated. For example, a RAKE receiver can be used to track and demodulate multi-path signals of a CDMA system. A number of different CDMA architectures have been developed, such as for example, a heterodyne architecture that includes both an intermediate frequency (IF) section and an RF section, and a Zero IF architecture which converts incoming RF signals directly into baseband signals without first converting the RF signals to IF signals. Depending on the architecture, any number of frequency synthesizers may be implemented to provide reference waveforms to the mixers.

[0004] Frequency synthesizers are also used during RF signal transmission. In that case, baseband signals are up-mixed to RF. During the up-mixing process, the frequency synthesizer produces carrier RF waveforms. The carrier waveforms are then encoded with the baseband signal before being wirelessly transmitted. Again, the frequency synthesizer typically uses the local clock of the wireless communication device as the timing reference. For example, the carrier RF waveform may be created by a voltage controlled oscillator (VCO) whose frequency is determined by a phase locked loop (PLL). The timing reference for the PLL is a high precision low frequency crystal oscillator, such as a voltage controlled temperature compensated crystal oscillator (VCTCXO). The VCO may be off-chip, or alternatively integrated on-chip. The phase locked loop (PLL) that provides closed-loop analog control of the oscillator can either be integrated on the same chip as the VCO, or can likewise be a separate off-chip component.

[0005] Frequency variation of the VCO is a major concern. Frequency variation can be caused by one or more of a number of factors, including manufacturing variations, process variations, and frequency variations caused by changes in ambient conditions such as temperature. The analog voltage applied at the VCO can be modified to account for frequency errors, but the analog gain of the VCO is limited. Moreover, it is often desirable to reduce the gain of the VCO in order to limit the amount of noise introduced into the system. Frequency variation can be particularly problematic in integrated frequency synthesizers that integrate the VCO on-chip with the phase locked loop. In particular, varactors of an on-chip VCO may present more variation in mean capacitance than the VCO is able to compensate in voltage controlled capacitance.

SUMMARY

[0006] In one embodiment, a frequency synthesizer comprises an oscillator and a calibration unit. The oscillator may be a voltage controlled oscillator (VCO) that includes configurable circuitry that can be selectively activated to adjust the frequency of the oscillator for a given input voltage. For example, the configurable circuitry may comprise a set of switched capacitors. The calibration unit of the frequency synthesizer may selectively activate the configurable circuitry of the VCO based on a comparison of a signal indicative of the oscillating frequency of the VCO and a signal indicative of a reference frequency. More specifically, the calibration unit may initialize dividers that provide the signals indicative of the VCO frequency and the reference frequency at approximately the same time, so that the frequencies of the generated signals are substantially in phase at the start of calibration. In this manner, the frequency synthesizer can be quickly calibrated, ensuring that an analog gain of the frequency synthesizer is adequate to tune the VCO.

[0007] The various embodiments and techniques described in detail below may be implemented in hardware, software, firmware, or any combination thereof. Additional details of these and other embodiments are set forth in the accompanying drawings and the description below. Other features, objects and advantages will become apparent from the description and drawings, and from the claims.

BRIEF DESCRIPTION OF DRAWINGS

[0008]FIG. 1 is a block diagram of a wireless communication device implementing a frequency synthesizer for RF signal reception.

[0009]FIG. 2 is a block diagram of a wireless communication device implementing a frequency synthesizer for RF signal transmission.

[0010]FIG. 3 is a more detailed block diagram of an exemplary frequency synthesizer according to an embodiment.

[0011]FIG. 4 is circuit diagram of an exemplary voltage controlled oscillator including configurable circuitry in the form of switched capacitors.

[0012]FIG. 5 is a more detailed circuit diagram of a set of switched capacitors in parallel that can be selectively activated to calibrate a voltage controlled oscillator.

[0013]FIG. 6 is a flow diagram according to an embodiment, illustrating a calibration technique for a frequency synthesizer.

[0014]FIG. 7 is a timing diagram illustrating the generation of signals indicative of a reference frequency and an oscillator frequency.

[0015] FIGS. 8A-8C are timing diagrams illustrating the comparison of a signal indicative of an oscillator frequency and a signal indicative of a reference frequency.

[0016]FIG. 9 is another flow chart according to an additional embodiment.

DETAILED DESCRIPTION

[0017] In general, this disclosure is directed to a frequency synthesizer for use in a wireless communication device, or similar device that requires precision frequency synthesis but small amounts of noise. In particular, the frequency synthesizer may implement a phase locked loop (PLL) to provide analog tuning control of an integrated oscillator such as an integrated voltage controlled oscillator (VCO).

[0018] In addition, the frequency synthesizer may implement open-loop discrete calibration prior to implementing the analog tuning control. In particular, the frequency synthesizer may implement the discrete calibration techniques as outlined in greater detail below in order to quickly and precisely calibrate the VCO prior to implementing analog control via a phase locked loop (PLL). In this manner, the analog gain of the VCO can be significantly reduced, which can improve performance of the wireless communication device by reducing noise associated with large gain values.

[0019] In one embodiment, a frequency synthesizer includes a voltage controlled oscillator (VCO) integrated with a phase locked loop (PLL). The frequency synthesizer may invoke a calibration routine in order to calibrate the VCO. For example, a calibration unit may compare the frequency of the VCO at a defined reference voltage with a known reference frequency. The calibration unit can then adjust the initial capacitance of the VCO in order to ensure that the VCO is calibrated to be within the tuning range of the PLL. More specifically, during calibration, the calibration unit may initialize frequency dividers that provide measures of the VCO frequency and reference frequency.

[0020] As outlined in greater detail below, by initializing the frequency dividers at approximately the same time, substantial phase error between the signals indicative of the VCO frequency and the reference frequency can be avoided. Moreover, by avoiding substantial phase error between the signals indicative of the VCO frequency and the reference frequency, calibration can be completed more quickly and more accurately.

[0021]FIGS. 1 and 2 are block diagrams of a wireless communication device 10 implementing frequency synthesizers 20A and 20B during RF signal reception and RF signal transmission respectively. In either case, frequency synthesizer 20 may implement one or more of the techniques outlined below to improve operation of the wireless communication device 10.

[0022] In particular, FIG. 1 is a block diagram of an exemplary wireless communication device (WCD) 10 implementing the Zero IF architecture, although this disclosure is not limited in that respect. In that case, WCD 10 converts incoming RF signals directly into baseband signals and, specifically, does not first convert the RF signals to intermediate frequency (IF) signals. It is understood, however, that the techniques described herein may be readily applicable to any architecture that implements one or more frequency synthesizers.

[0023] WCD 10 includes antenna 12 that receives incoming RF signals. For example, the incoming RF signals may comprise code division multiple access (CDMA) modulated signals sent from a CDMA base station. An RF signal received by antenna 12 can be processed by RF receiver 14, such as by passing the signal through low-noise amplifier (LNA) and one or more filters. The RF signal is then mixed down to baseband by down-mixer 15. In particular, down-mixer 15 may receive reference waveforms produced by frequency synthesizer 20A. Frequency synthesizer 20A may implement a calibration routine as outlined in greater detail below to calibrate frequency synthesizer to approximately the correct operative frequency. The calibration routine may improve the frequency synthesis process, reduce noise in the system, and allow for simplification of various components of frequency synthesizer 20A.

[0024] Down mixer 15 produces baseband signals which can be filtered and sampled by analog to digital (A/D) converter 17 to produce corresponding digital values of the signals. One or more amplifiers 18, such as a digital voltage gain amplifier (VGA), can be used to scale the digital baseband signal, either by amplifying or attenuating the digital values according to gain values received from an automatic gain control unit (not shown).

[0025] After scaling by amplifier 18, the scaled digital baseband signal is provided to RAKE receiver 19, which separates and tracks signals received from different sources, e.g., different base stations, or signals received from the same source via multiple propagation paths, i.e. multi-path signals. For example, RAKE receiver 19 may include a number of “fingers” that perform despreading, Walsh decovering and accumulation, pilot time tracking and frequency tracking. Each finger of RAKE receiver 19 outputs pilot and data symbols for the corresponding path. Symbol demodulation and/or other signal processing may then be performed on the pilot and data symbols. As desired, WCD 10 may also include additional components (not shown) such as filters and various digital or analog signal processing components.

[0026]FIG. 2 is another block diagram of WCD 10, illustrating components implemented during RF signal transmission. In that case, baseband transmitter 24 may generate and forward baseband signals to up-mixer 25. Frequency synthesizer 20B provides carrier RF waveforms to up-mixer 25. Frequency synthesizer 20B may be the same synthesizer as frequency synthesizer 20A (FIG. 1), or may be a different synthesizer than that used for signal reception. In either case, frequency synthesizer 20B implements calibration techniques as outlined below to calibrate itself to generate oscillating signals at the correct operative frequency. Up-mixer 25 modulates the baseband signal into the RF carrier and forwards the modulated RF signal to amplifiers 26 for scaling. Amplifiers 26 may include one or more voltage gain amplifiers (VGAs), driver amplifiers (DAs), and power amplifiers (PAs). The different amplifiers may reside on the same integrated circuit chip, or multiple different chips. Once the modulated RF signal has been adequately amplified or attenuated, RF transmitter 28 may transmit the modulated RF signal from wireless communication device 10 via antenna 12.

[0027]FIG. 3 is a more detailed block diagram of frequency synthesizer 20 according to an embodiment. Frequency synthesizer 20 may correspond, for example, to either frequency synthesizer 20A or 20B illustrated in FIGS. 1 and 2 respectively. Frequency synthesizer 20 may comprise an oscillator such as a voltage controlled oscillator (VCO) 30 integrated with a phase locked loop (PLL) 31. For example, PLL 31 may provide analog closed-loop control of the VCO 30 via an input control voltage. PLL 31 may include a number of components, including frequency dividers 32 and 33, a phase detector 34, a charge pump 35 and a loop filter 36. For example, frequency dividers 32 and 33 can respectively scale a reference frequency (such as provided by a temperature compensated crystal oscillator (TCXO)), and the VCO frequency, so that phase detector 34 can determine the frequency difference between the two frequencies. Charge pump 35 can then adjust the input voltage to VCO 30 as needed, to either increase or decrease the oscillator frequency. Loop filter 36 may perform filtering of the input signals to VCO 30 in order to improve performance of frequency synthesizer 20 and possibly reduce noise in the system.

[0028] The analog gain of the PLL 31, however, is limited. In other words, charge pump 35 is capable of producing input voltages to VCO 30 within a finite range of voltages. Moreover, larger gains generally result in increased system noise provided by frequency synthesizer 20. Accordingly, it is generally desirable to reduce the range of gain that charge pump 35 provides to oscillator 30.

[0029] To compound the problems raised by large gains in PLL 31, VCO 30 may have relatively large frequency variations, caused by factors such as manufacturing variations, process variations, and frequency variations caused by changes in ambient conditions. The analog voltage applied by charge pump 34 to VCO 30 can be modified to account for these frequency errors but, as mentioned, the analog gain of the VCO is limited. Frequency variation in VCO 30 is particularly problematic in integrated frequency synthesizers that integrate VCO 30 on-chip with the PLL 31, because varactors of an on-chip VCO may vary by more in mean capacitance than the VCO can compensate in voltage controlled capacitance.

[0030] For these and other reasons, frequency synthesizer 20 includes a calibration unit 38 to calibrate VCO 30 prior to activating the analog closed-loop voltage control of VCO 30. For example, calibration unit 38 can calibrate VCO 30 to operate at or near an optimal frequency for a defined voltage corresponding to, for example, a center of the available voltages that charge pump 35 can generate. In this manner, the required gain of PLL 31 can be reduced, which can improve performance of WCD 10 (FIGS. 1 and 2) by reducing noise introduced by frequency synthesizer 20.

[0031] VCO 30 may be configurable so that calibration can be performed prior to closed-loop analog control. For example, VCO 30 may include a number of switched capacitors. Calibration unit 38 may selectively activate a number of the switched capacitors of VCO 30 in order to properly calibrate VCO 30 to an optimal or near optimal operating frequency. Once calibrated VCO 30 may be controlled via PLL 31.

[0032] Frequency synthesizer 20 may include a calibration switch 41 for placing frequency synthesizer 20 in either a calibration state or a normal operation state. For example, during calibration, switch 41 can select “calibration reference voltage” 42 as input to oscillator 30. Calibration reference voltage 42 may be provided by an operational amplifier (op amp) and can be chosen to correspond to the center of the available input voltages that charge pump 35 can provide. Calibration reference voltage 42 may be tested or checked during calibration in order to ensure that it is the desired reference voltage.

[0033] Additionally, in some cases, calibration reference voltage 42 can be skewed in order to compensate for ambient conditions such as temperature. For example, if the ambient temperature is less than the normal operating temperature, it may be desirable to skew calibration reference voltage 42 to the lower end of the range of voltages that charge pump 35 can provide. Similarly, if ambient temperature is greater than the normal operating temperature, it may be desirable to skew calibration reference voltage 42 to the upper end of the range of voltages that charge pump 35 can provide. For example, a temperature compensation algorithm which generates voltages proportional to absolute temperature (PTAT) may be implemented within the circuitry that generates reference voltage 42. In this manner, during normal operation, the likelihood that the PLL control voltage will attempt to go outside the range that the charge pump can provide can be reduced. In any case, calibration reference voltage 42 causes VCO 30 to oscillate at an initial frequency.

[0034] First frequency divider 32 scales the oscillator frequency, such as by dividing the frequency by an integer. Similarly, second frequency divider 33 scales a reference frequency 43, such as by dividing the reference frequency by an integer. The reference frequency 43, may be provided, for example, by a higher accuracy, lower frequency clock than VCO 30, such as a temperature compensated crystal oscillator (TCXO). The outputs of the frequency dividers 32, 33, respectively, comprise a signal indicative of the oscillator frequency (in this case, the frequency of VCO 30), and a signal indicative of the reference frequency 43. The output signals of frequency dividers 32, 33 are scaled so that a measure of the phase difference between the signals can provide a measure of the error in VCO 30.

[0035] Dividers 32 and 33 may be implemented using a wide variety of different hardware configurations, including multiplier circuits, divider circuits, shift registers, counters, and the like. In one relatively simple configuration, dividers 32, 33 include counters that count the leading or trailing edges of oscillator pulses, and provide a signal each time an integer number of pulses is detected. In this manner, signals indicative of the frequency of VCO 30 and the reference frequency 43 can be generated and provided to calibration unit 38, which can use the signals to calibrate VCO 30.

[0036] In order to greatly improve the calibration process, calibration unit 38 initializes dividers 32, 33 at approximately the same time (as illustrated by control signals 45 and 46). In this manner, signals indicative of the frequency of VCO 30 and the reference frequency 43 are scaled at approximately the same time. In other words, by initializing dividers 32, 33 at approximately the same time, the signals generated by dividers 32, 33 are substantially in phase. Therefore, calibration unit 38 can determine a frequency difference between the signals generated by dividers 32, 33 after only one signal cycle. In this manner, calibration unit 38 can avoid the need to accumulate or track the generated signals for extended periods of time in order to determine the frequency difference. Instead, by initializing dividers 32, 33 at approximately the same time, calibration unit 38 can determine the frequency difference between the signals and adjust VCO 30 more quickly. In other words, initializing dividers 32, 33 at approximately the same time can significantly reduce the time it takes to calibrate VCO 30.

[0037]FIG. 4 is a circuit diagram illustrating an exemplary VCO 30. Although various embodiments are described specifically with reference to a VCO, this disclosure is not necessarily limited in that respect. Other embodiments implementing various different oscillators within a frequency synthesizer, such as current controlled oscillators, and the like, may also implement similar techniques to those specifically described herein.

[0038] As shown in FIG. 4, VCO 30 comprises an oscillator tank 57 coupled to a tail current source 58. The oscillator tank 57 of VCO 30 may comprise an LC circuit (inductor-capacitor circuit) that includes inductor 51 tapped by a voltage source 52. The oscillator tank 57 of VCO 30 may also include one or more varactors 53, as well as transistors 54A and 54B. For example, varactors 53 may comprise reverse biased diodes that together behave like a capacitor. In addition, the oscillator tank 57 of VCO 30 includes configurable circuitry in the form of an array of switched capacitors 56. The switched capacitors 56 can be selectively activated during the calibration process in order to calibrate VCO 30 to an acceptable operating frequency.

[0039]FIG. 5 is a more detailed circuit diagram of an exemplary array of switched capacitors 56. In general, the array of switched capacitors 56 may include a number (N) of capacitors in parallel, although other configurations could also be used. In the illustrated example, each switch (S₁-S_(N)) can be used to activate two capacitors in series. In other words, each switched capacitor comprises an activation switch (S) and capacitors (C and C′) in series. In the embodiment of FIG. 5, as more switches are activated, more capacitors are added to the circuit, and the total capacitance of the circuit increases. Accordingly, calibration unit 38 can calibrate VCO 30 by selectively activating or deactivating the number of switches sufficient to compensate for measured frequency differences between the signal indicative of the oscillator frequency and the signal indicative of the reference frequency. It is understood that FIG. 5 is merely an exemplary configuration of switched capacitors, and that alternative configurations will become readily apparent in light of this disclosure.

[0040]FIG. 6 is a flow diagram illustrating a calibration technique for a frequency synthesizer. In particular, the technique illustrated in FIG. 6 may be implemented as an open calibration loop for calibrating VCO 30 prior to activating the analog closed-loop control. As shown, calibration unit 38 disables the phase locked loop (PLL) 31 (61), such as by activating switch 41 to provide calibration reference voltage 42 as input to VCO 30. At that point, calibration unit 38 may wait for a short period of time, as needed, in order to ensure that the initial oscillation frequency of VCO 30 reaches steady state. In other words, it may be desirable to allow the various components of frequency synthesizer 20 to warm up for a short time following the input of calibration reference voltage 42 to VCO 30.

[0041] Once the system has warmed up, calibration unit 38 initializes frequency dividers 32 and 33 (62), such as by sending one or more control signals 45, 46. In particular, calibration unit 38 may initialize frequency dividers 32, 33 at approximately the same time. In one embodiment, frequency dividers 32, 33 comprise counters that count the leading or trailing edges of oscillator pulses. In that case, dividers 32, 33 are initialized by starting the counters at approximately the same time. First frequency divider 32 generates an oscillator signal (63), i.e., a signal indicative of the initial frequency of VCO 30. Similarly, second frequency divider 33 generates a reference signal (64), i.e., a signal indicative of the reference frequency 43. In this manner, dividers 32, 33 can generate in-phase signals indicative of the initial frequency of VCO 30 and the reference frequency 43. Dividers 32, 33 may respectively scale the respective input frequencies so that the generated signals are normalized with respect to one another.

[0042] Calibration unit 38 compares the oscillator signal and the reference signal (65) in order to determine whether VCO 30 is oscillating at an acceptable frequency. Specifically, calibration unit 38 can measure the time difference between the leading edges of signals generated by dividers 32 and 33 to determine the frequency difference between the two signals. Calibration unit 38 may include comparison circuitry for this purpose. In this manner, calibration unit can determine whether VCO 30 is oscillating at an acceptable frequency.

[0043] Calibration unit 38 can then adjust VCO 30 accordingly (66). For example, calibration unit 38 may include a digital state machine for controlling configurable circuitry of VCO 30. As illustrated in FIGS. 4 and 5, the configurable circuitry of VCO 30 may comprise a set of switched capacitors 56. Accordingly, calibration unit 38 may selectively activate or deactivate one or more of the switches in order to properly calibrate VCO 30 to operate at or near an optimal oscillation frequency. In some cases, a subset of switches can be simultaneously activated or deactivated, and in other cases, the activation of the switches can be incremented over the course of the calibration routine. In any case, once VCO 30 is properly adjusted (66), PLL 31 can be enabled (67), such as by activating switch 41 to provide the output of the PLL as the voltage control input to VCO 30. In this manner, analog control of VCO 30 is enabled after discrete calibration.

[0044] The calibration routine may be repeated periodically, if needed. In particular, the PLL control voltage (labeled but not numbered in FIG. 3) which is used as voltage control input to VCO 30 during normal operation may be tested or checked during the normal operation to determine if calibration should be repeated at the next available opportunity. A condition that indicates calibration should be repeated may correspond to the condition where the PLL control voltage is outside the range of voltages that the charge pump can provide without degrading performance of the charge pump. This range of voltages may incorporate a small safety range, so that the PLL control voltage is checked against voltages that are a small amount within the range of the voltages that the charge pump can provide.

[0045]FIG. 7 is a timing diagram illustrating the timing of the generation of the oscillator signal and reference signal by dividers 32 and 33. As illustrated, at time=initialize, counters within dividers 32 and 33 are reset at the same time. The counters within dividers 32 and 33 respectively count the leading edges of pulses of the respective signal, and respectively generate a reference signal pulse and an oscillator signal pulse after a defined number of pulses have respectively been counted. For example, as illustrated, the reference frequency provided by TCXO may be divided by three. In that case, divider 33 counts leading edges of TCXO pulses and generates a reference signal pulse after three counts. Similarly, the oscillator frequency provided by VCO may be divided by four. In that case, divider 32, counts leading edges of VCO pulses and generates an oscillator signal after four pulses. The oscillator signal and reference signal can then be compared in order to identify a phase difference to identify whether the frequency of VCO 30 is too fast, too slow, or within an acceptable frequency range. FIG. 7 is simplified for illustrative purposes. In operation, the frequency of TCXO is typically much smaller than the frequency of the VCO. Accordingly, divider 33 would typically count a much smaller integer number of pulses than divider 32 before generating the respective signal.

[0046] The integers used to define the number of pulses counted by dividers 32 and 33 can be defined so that the generated reference signal and oscillator signal are approximately normalized. Moreover, because the signals are in phase, the frequency difference between the two generated signals can be determined very quickly. Specifically, the frequency difference between the two generated signals can be determined after only one signal cycle. In this manner, the need for accumulators or more complex comparative circuitry can be avoided. Moreover, because the signals are generated in phase, the calibration time can be significantly reduced.

[0047] FIGS. 8A-8C are additional timing diagrams illustrating one example of the how calibration unit 38 can compare the oscillator signal and reference signal. In this case, calibration unit 38 may examine the oscillator signal and reference signal to determine whether oscillation frequency of VCO is acceptable. The reference signal provides a reference for examining the oscillator signal. The reference divider 33 may also define an acceptable window around the leading edge of the pulse of the reference signal. If the leading edge of the oscillator signal falls within the window, it is acceptable. If not, VCO 30 can be adjusted. The size of the window can be chosen according to the desired precision of the calibration routine.

[0048] In FIG. 8A, the leading edge of the oscillator signal comes before the window. In that case, VCO 30 is operating at a frequency that is too high (or “too fast”). Accordingly, in that case, calibration unit 38 can activate capacitor switches to reduce the frequency of VCO 30. As shown in FIG. 8B, the leading edge of the oscillator signal comes after the window. In that case, VCO is operating at a frequency that is too low (or “too slow”). Accordingly, in that case, calibration unit 38 can deactivate capacitor switches to increase the frequency of VCO 30. As shown in FIG. 8C, the leading edge of the oscillator signal falls within the window. In that case, VCO is operating at a frequency that is acceptable. Accordingly, in that case, calibration unit 38 does not need to activate or deactivate capacitor switches of VCO. FIG. 8C is captioned “just right” because the leading edge of the oscillator signal is precisely aligned within the window of the reference signal.

[0049] The described embodiments are capable of providing a number of advantages. Specifically, performing discrete calibration of VCO 30 prior to invoking PLL 31 for analog control can reduce noise in the system by reducing the necessary gain of PLL 31. Moreover, reducing the needed gain of the PLL can allow simplification of components of charge pump 35, and possibly a more aggressive design of loop filter 36, to even further reduce noise.

[0050] Furthermore, initializing frequency dividers 33, 34 at approximately the same time can significantly reduce the amount of time needed for calibration, by providing signals to calibration unit 38 that are in phase. When the signals are in phase, comparison of the signals can be greatly simplified. Moreover, this advantage can carry over to actually improve performance of PLL 31 following calibration. For example, phase detector 34 of PLL 31 may also be able to more quickly detect the phase difference between the signals because of the simultaneous initialization of dividers 32 and 33. In other words, the lock time of the PLL 31 can be reduced.

[0051] In some embodiments, calibration unit 38 re-initializes dividers 32 and 33 after the calibration routine. In other words, calibration unit 38 re-initializes dividers 32 and 33 when switch 41 is activated to enable PLL 31. This additional initialization can even further reduce the lock time of the PLL 31, specifically because the signals provided from dividers 32 and 33 to phase detector 34 are in phase at the beginning of operation of PLL 31. Additionally, the locking times of the PLL may be further improved by the fact that the PLL starts with both insignificant phase error and very small frequency error due to the calibration.

[0052] Another advantage of the embodiments described herein is that the same dividers 32 and 33 can be used for the discrete calibration loop and the analog control loop of PLL 31. In both cases, dividers 32 and 33 can be initialized at the same time so that generated signals are in phase. By initializing dividers 32, 33 at the beginning of discrete calibration, the time it takes for calibration can be reduced, and by initializing the dividers following discrete calibration, the lock time of PLL 31 can be reduced. Moreover, by using the same dividers for both the discrete calibration loop and the analog control loop of PLL 31 the overall amount of circuitry of frequency synthesizer 20 can be reduced.

[0053] Still additional features may also be implemented to improve the performance of the PLL based on information obtained during calibration. In other words, the result of the calibration may provide information about the analog gain of the VCO. Using this information, the analog gain of the charge pump can be adjusted when the PLL is enabled, so that the total gain of the PLL is maintained relatively constant.

[0054] More specifically, after the calibration routine has determined a particular switched capacitance setting, the determined setting can be used to initialize the gain of the charge pump of the PLL. For example, the switched capacitance setting may be represented as a number, e.g. between 1 and 32. Through simulation, it can be determined that if the final setting of the frequency calibration loop is 16, then the analog gain of the VCO (Kv) will be X for a nominal frequency of the oscillator. However, if the final setting of the calibration loop is for example 17, then the analog gain of the VCO may be increased, for example, to be X+5%*X. Likewise, if the setting is 15, then the analog gain of the VCO may be decreased, for example, to be X−5%*X.

[0055] In order to keep the loop gain of the PLL relatively constant, the analog gain of the charge pump (Kφ) can be initialized based on information determined during frequency calibration, e.g., the capacitor setting or the analog gain of the VCO (Kv). Thus, if the nominal gain of the charge pump (Kφ is Y, then in the case where the final calibration setting is 17, Kφ can be adjusted to be Y/(1+5%). Similarly, if the final setting is 15, Kφ may be adjusted to be Y/(1−5%). In general, the final calibration setting provides information about the analog gain of the VCO. This information can be used to adjust the analog gain of a different portion of the PLL (such as the gain of the charge pump) in order to keep the total analog gain constant. Since total gain is proportional to Kv*Kφ, keeping Kv*Kφ constant can likewise ensure that the total gain remains relatively constant.

[0056] As mentioned above, additional techniques can also be implemented during calibration to account for variations in ambient conditions such as temperature. For example, temperature variations may cause variations in the capacitance of varactors on an integrated on-chip VCO. For this reason, it may be desirable to skew calibration input voltage 42 in order to compensate for ambient conditions such as temperature. If temperature is not a concern, calibration input voltage may be selected to correspond the center of the available voltages that charge pump 35 can provide. However, because temperature variations can cause variations in capacitance of varactors in VCO 30, it may be desirable to adjust calibration input voltage to account for likely future changes in temperature.

[0057] For example, if the ambient temperature is less than the normal operating temperature, it may be desirable to skew calibration reference voltage 42 to the lower end of the range of voltages that charge pump 35 can provide. Similarly, if ambient temperature is greater than the normal operating temperature, it may be desirable to skew calibration reference voltage 42 to the upper end of the range of voltages that charge pump 35 can provide. A temperature compensation algorithm which generates voltages proportional to absolute temperature (PTAT) may be implemented to generate calibration reference voltage 42. For example, temperature compensation circuitry may be implemented to execute a PTAT algorithm when generating calibration reference voltage 42.

[0058]FIG. 9 a another flow diagram according to an embodiment. As shown, a calibration input parameter is selected (91). For example, frequency synthesizer 20 may include temperature compensation circuitry which executes an algorithm to select a calibration reference voltage 42 proportional to absolute temperature (PTAT). VCO 30 can then be calibrated (92) as outlined above. Then, after calibration, PLL 31 can be enabled (93). By selecting the calibration input parameter according to ambient conditions, such as temperature, the likelihood that changes in ambient conditions will negatively impact operation of frequency synthesizer 20 can be reduced.

[0059] For example, if calibration is performed at a cold temperature, the analog tuning voltage will already be towards the lower end of its possible range. If the temperature increases and calibration can not be performed again, charge pump 35 will have a larger range of available voltage increases for tuning VCO 30. The range of available voltage reductions may be reduced, but significant voltage reductions would not be likely if the calibration is performed at a cold temperature.

[0060] Similarly, if calibration is performed at a hot temperature, the reference voltage starts out at the high end of the range of voltages that charge pump 35 can provide. Thus, charge pump 35 has a larger range of voltage reductions for tuning VCO 30. In that case, the range of available voltage increases may be reduced, but significant voltage increases would not be likely if the calibration is performed at a hot temperature.

[0061] A number of embodiments have been described. For example, calibration techniques have been described for discrete calibration of an oscillator prior to activating closed-loop analog control. Nevertheless various modifications can be made without departing from the scope of this disclosure. For example, the same or similar techniques may be implemented in devices other that a wireless communication device. Also, the same or similar techniques may be used with oscillators other than voltage controlled oscillators. For example, similar techniques may be may be used to calibrate current controlled oscillators, and the like.

[0062] Furthermore, although many detailed aspects of the various embodiments have been described as being implemented in hardware, the same or similar techniques may be implemented in software executing on a programmable digital signal processor (DSP), firmware, or various combinations of hardware, software and firmware. Accordingly, these and other embodiments are within the scope of the following claims. 

1. A method of calibrating an oscillator comprising: generating a first signal indicative of an initial frequency of the oscillator for an input parameter; generating a second signal indicative of a reference frequency, wherein generating the first and second signals comprises scaling the initial frequency of the oscillator and the reference frequency at approximately the same time so that the generated signals are substantially in phase; and adjusting the initial frequency of the oscillator based on a comparison of the first and second signals.
 2. The method of claim 1, wherein the oscillator comprises a voltage controlled oscillator and the input parameter comprises a calibration voltage input, and wherein generating the first signal comprises applying the calibration voltage input to the voltage controlled oscillator to generate the initial frequency of the oscillator and scaling the initial frequency of the oscillator.
 3. The method of claim 2, further comprising generating the calibration voltage input based on temperature.
 4. The method of claim 1, further comprising enabling a phase locked loop after adjusting the initial frequency and testing a voltage control input to the oscillator from the phase locked loop to determine whether calibration should be performed again.
 5. The method of claim 1, wherein generating the second signal comprises receiving the reference frequency from a temperature compensated crystal oscillator and scaling the reference frequency.
 6. The method of claim 1, wherein scaling the initial frequency of the oscillator and scaling the reference frequency at approximately the same time comprises initializing divider circuits for the initial frequency of the oscillator and the reference frequency at approximately the same time.
 7. The method of claim 1, wherein the oscillator comprises a voltage controlled oscillator including a number of switched capacitors, and wherein adjusting the initial frequency of the oscillator based on a comparison of the first and second signals comprises activating a subset of the switched capacitors based on the comparison of the first and second signals.
 8. The method of claim 1, further comprising enabling a phase lock loop following calibration of the oscillator, and adjusting an initial gain of a charge pump of the phase lock loop based on a calibration setting of the oscillator.
 9. A frequency synthesizer comprising: an oscillator including configurable circuitry that defines an initial frequency of the oscillator for an initial input parameter; and a calibration unit that adjusts the configurable circuitry based on a comparison of a signal indicative of the oscillator and a signal indicative of a reference, wherein the calibration unit initializes the signals indicative of the oscillator and the reference so that the signals are substantially in phase.
 10. The frequency synthesizer of claim 9, wherein the oscillator comprises a voltage controlled oscillator and the initial input parameter is an initial input voltage, and wherein the configurable circuitry comprises a number of switched capacitors, wherein the calibration unit adjusts the configurable circuitry by activating a subset of the switched capacitors based on the comparison of the signal indicative of the oscillator and the signal indicative of the reference.
 11. The frequency synthesizer of claim 10, further comprising circuitry that generates the initial input voltage based on temperature.
 12. The frequency synthesizer of claim 9, further comprising a first divider that generates the signal indicative of the oscillator by scaling an oscillator frequency defined by the initial input parameter, and a second divider that generates the signal indicative of the reference by scaling a reference frequency.
 13. The frequency synthesizer of claim 12, wherein the calibration unit initializes the first and second dividers at approximately the same time to initialize signals indicative of the oscillator and the reference so that the signals are substantially in phase.
 14. The frequency synthesizer of claim 12, further comprising a phase locked loop that provides analog control of the oscillator following calibration.
 15. The frequency synthesizer of claim 14, wherein the phase locked loop and the oscillator are integrated as integrated circuitry, wherein the dividers used for scaling of the reference and oscillator frequencies are also used in the phase locked-loop.
 16. The frequency synthesizer of claim 14, wherein the oscillator is a voltage controlled oscillator, and wherein the phase locked loop includes a charge pump that generates input voltages for the voltage controlled oscillator after calibration based on a comparison of the signal indicative of the oscillator and the frequency indicative of a reference.
 17. An apparatus comprising: circuitry that generates a first signal indicative of an initial frequency of an oscillator for an input parameter; circuitry that generates a second signal indicative of a reference frequency, wherein the circuitry that generates the first and second signals scales the initial frequency of the oscillator and scales the reference frequency at approximately the same time so that the generated signals are substantially in phase; and circuitry that adjusts the initial frequency of the oscillator based on a comparison of the first and second signals.
 18. The apparatus of claim 17, wherein the oscillator comprises a voltage controlled oscillator and the input parameter comprises a calibration voltage input, wherein the circuitry that generates the first signal applies the calibration voltage input to the voltage controlled oscillator to generate the initial frequency of the oscillator and scales the initial frequency of the oscillator.
 19. The apparatus of claim 17, further comprising circuitry that generates the calibration voltage input based on temperature.
 20. The apparatus of claim 17, wherein the circuitry that generates the second signal receives the reference frequency from a temperature compensated crystal oscillator and scales the reference frequency.
 21. The apparatus of claim 17, wherein the circuitry that scales the initial frequency of the oscillator and scales the reference frequency at approximately the same time initializes divider circuits for the initial frequency of the oscillator and the reference frequency at approximately the same time.
 22. The apparatus of claim 17, wherein the oscillator comprises a voltage controlled oscillator including a number of switched capacitors, wherein the circuitry that adjusts the initial frequency of the oscillator based on a comparison of the first and second signals activates a subset of the switched capacitors based on the comparison of the first and second signals.
 23. A frequency synthesizer comprising: an oscillator including configurable circuitry that defines an initial frequency of the oscillator for an initial input parameter; and means for adjusting the configurable circuitry based on a comparison of a signal indicative of the oscillator and a signal indicative of a reference, wherein the means for adjusting initializes the signals indicative of the oscillator and the reference so that the signals are substantially in phase.
 24. The frequency synthesizer of claim 23, wherein the oscillator comprises a voltage controlled oscillator and the initial input parameter is an initial input voltage, and wherein the configurable circuitry comprises a number of switched capacitors, wherein the means for adjusting adjusts the configurable circuitry by activating a subset of the switched capacitors based on the comparison of the signal indicative of the oscillator and a signal indicative of the reference.
 25. The frequency synthesizer of claim 24, further comprising means for generating the initial input voltage based on temperature.
 26. The frequency synthesizer of claim 23, further comprising a first divider means that generates the signal indicative of the oscillator by scaling an oscillator frequency defined by the initial input parameter, and a second divider means that generates the signal indicative of the reference by scaling a reference frequency.
 27. The frequency synthesizer of claim 26, wherein the means for adjusting initializes the signals indicative of the oscillator and the reference by initializing a divider circuit for initial frequency of the oscillator and a divider circuit for the reference frequency at approximately the same time.
 28. The frequency synthesizer of claim 23, further comprising means for analog control of the oscillator following calibration.
 29. The frequency synthesizer of claim 28, wherein the means for analog control and the oscillator are integrated as integrated circuitry.
 30. The frequency synthesizer of claim 28, wherein the oscillator is a voltage controlled oscillator, and wherein the means for analog control includes a means for generating input voltages for the voltage controlled oscillator after calibration based on a comparison of the signal indicative of the oscillator and the signal indicative of a reference.
 31. A wireless communication device comprising: frequency synthesizer that generates waveforms, wherein the frequency synthesizer comprises an oscillator including configurable circuitry that defines an initial frequency of the oscillator for an initial input parameter, and a calibration unit that adjusts the configurable circuitry based on a comparison of a signal indicative of the oscillator and a signal indicative of a reference, wherein the calibration unit initializes the signals indicative of the oscillator and the reference so that the frequencies are substantially in phase; and a mixer that mixes the waveforms.
 32. The wireless communication device of claim 31, further comprising a receiver that receives RF waveforms, wherein the mixer down-mixes the received RF waveforms to a baseband signal using the waveforms generated by the frequency synthesizer as a timing reference.
 33. The wireless communication device of claim 31, further comprising a transmitter that transmits the waveforms, wherein the mixer modulates baseband signals into the waveforms prior to transmission.
 34. A method comprising: selecting a calibration input parameter for an oscillator based on temperature; and calibrating the oscillator based on a frequency of the oscillator at the calibration input parameter.
 35. The method of claim 34, further comprising controlling the frequency of the oscillator after calibration via a phase locked loop.
 36. The method of claim 34, wherein the oscillator is a voltage controlled oscillator, and wherein selecting the calibration input parameter comprises selecting a calibration input voltage based on temperature.
 37. The method of claim 34, wherein calibrating the oscillator comprises calibrating switched circuitry of the oscillator.
 38. An apparatus comprising: an oscillator including configurable circuitry that defines an initial frequency of the oscillator at a calibration parameter; and temperature compensation circuitry that generates the calibration parameter based on temperature.
 39. The apparatus of claim 38, further comprising a calibration unit that selectively activates the configurable circuitry based on a comparison of a signal indicative of the oscillator and a signal indicative of a reference.
 40. The apparatus of claim 38, wherein the oscillator is a voltage controlled oscillator and the calibration parameter is an initial input voltage, wherein the temperature compensation circuitry selects the initial input voltage based on temperature.
 41. The apparatus of claim 38, further comprising a phase locked loop that adjusts oscillator frequency after calibration via closed-loop analog control of the oscillator. 